package com.android.jixin.channel.presenter.impl;

import android.app.Activity;

import com.android.jixin.channel.MainActivity;
import com.android.jixin.channel.base.RetrofitService;
import com.android.jixin.channel.presenter.ILoginPresenter;
import com.android.jixin.channel.presenter.IMainPresenter;
import com.android.jixin.channel.ui.activity.LoginActivity;
import com.android.jixin.channel.view.ILoginView;
import com.android.jixin.channel.view.IMainView;
import com.android.library.base.BasePresenter;
import com.android.library.util.StringUtils;

import javax.inject.Inject;

/**
 * Created by fitz on 2016/12/23.
 */

public class LoginPresenterImpl extends BasePresenter<ILoginView> implements ILoginPresenter {

    private RetrofitService mService;
    private LoginActivity mActivity;

    @Inject
    public LoginPresenterImpl(RetrofitService service, Activity activity){
        mService = service;
        mActivity = (LoginActivity) activity;
    }

    @Override
    public void getData() {

    }

    @Override
    public void setEnable(String phone, String code) {
        mView.setLoginEnable(!StringUtils.isEmpty(phone) && !StringUtils.isEmpty(code));
    }

    @Override
    public void getCode(String phone) {

    }
}
